﻿using Microsoft.AspNetCore.Builder;

namespace LDM.Framework.Application.Extensions;

public static class ServiceCollectionExtensions
{
    /// <summary>
    /// 初始化Api
    /// </summary>
    /// <param name="hostBuilder"></param>
    /// <returns></returns>
    public static WebApplicationBuilder InitAPI(this WebApplicationBuilder hostBuilder)
    {
        // 配置应用程序
        App.ConfigureApplication(hostBuilder.WebHost);

        return hostBuilder;
    }
}
